Mini version (within the los-mini folder)

Mini version cpp script(in the example/c++ folder)

Operation Instructions
  1. Add the bin file to the system environment and enter the los-mini folder.
  2. Perform clang compilation: clang -c test.c      With losld -o test test.o, generate the test.los file and convert the test.los file to the test[] array.
  3. In the los-mini folder, type the make command to generate the los.exe file. Run the viewing result
api Description:

1.mini version los, only the following api: please see the comments in the los.h file for specific use, and refer to test.c main.c

Uint32_t los_quit(losc_t *lp);
Void los_arg_clear(losc_t *lp);
Uint32_t los_push_arg(losc_t *lp, uint32_t arg);
Uint32_t los_call_addr(losc_t *lp, uint32_t addr);
Void los_set_function(fun_os f);
Uint32_t los_app_first(uint8_t *addr);

Migration Instructions

  1. Need to implement the memory management function of los.h
#define lpram_malloc malloc
#define lpram_free free

working process

  1. test-run